﻿<UserControl x:Class="StockAnalyst2.Plugins.Visualization.Realtime.NotificationViewer"
			 x:ClassModifier="internal"
			 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 mc:Ignorable="d" 
			 
             xmlns:Realtime="clr-namespace:StockAnalyst2.Plugins.Visualization.Realtime"
			 
			 Background="#1F1F1F" 
			 
             d:DataContext="{d:DesignInstance Type=Realtime:NotificationViewerVM}" 
			 d:DesignWidth="1000" >

	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="..\..\..\StockAnalystTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>

	<Expander IsExpanded="True">
		<Expander.HeaderTemplate>
			<DataTemplate>
				<TextBlock Foreground="{StaticResource FontBrush}" Text="Notifications" FontWeight="Bold" Margin="9,3,3,3" />
			</DataTemplate>
		</Expander.HeaderTemplate>
		<DataGrid AutoGenerateColumns="False" ItemsSource="{Binding Rows}" Background="{StaticResource GridBackground}" RowBackground="{StaticResource GridBackground}" HorizontalGridLinesBrush="{StaticResource SelectedRowBrush}" VerticalGridLinesBrush="{StaticResource DataGridHeaderBorderBrush}" RowHeaderWidth="0" HeadersVisibility="All" Foreground="{StaticResource FontBrush}" BorderThickness="0" HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Auto" SelectionMode="Single" d:DataContext="{d:DesignInstance Type=Realtime:NotificationViewerRowVM}" ScrollViewer.VerticalScrollBarVisibility="Auto" >
			<DataGrid.Resources>
				<Style TargetType="TextBlock" x:Key="TextMargin" >
					<Setter Property="Margin" Value="10,0,10,0" />
					<Setter Property="HorizontalAlignment" Value="Right" />
				</Style>
			</DataGrid.Resources>
			<DataGrid.Columns>
				<DataGridTextColumn CellStyle="{StaticResource CellSelectionStyle}" HeaderStyle="{StaticResource DataGridColumnHeaderLeft}" CanUserResize="False" IsReadOnly="True" Header="Date" Binding="{Binding Date, StringFormat=dd/MM/yyyy&#160;HH\\:mm\\:ss}" CanUserReorder="False" Width="Auto" />
				<DataGridTextColumn CellStyle="{StaticResource CellSelectionStyle}" HeaderStyle="{StaticResource DataGridColumnHeaderLeft}" CanUserResize="False" IsReadOnly="True" Header="Message" Binding="{Binding Message}" CanUserReorder="False" Width="*" />
			</DataGrid.Columns>
		</DataGrid>
	</Expander>
</UserControl>
